Scroll to navigation

lsm_iscsi_chap_auth(3) Libstoragemgmt C API Manual lsm_iscsi_chap_auth(3)

NAME

lsm_iscsi_chap_auth - Set iSCSI CHAP authentication.

SYNOPSIS

int lsm_iscsi_chap_auth (lsm_connect *conn, const char *init_id, const char *in_user, const char *in_password, const char *out_user, const char *out_password, lsm_flag flags);

ARGUMENTS

Valid connection pointer
String. The iSCSI Initiator IQN.
String. The inbound user name
String. The inbound password
String. The outbound user name
String. The outbound password
Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.

VERSION

1.0

DESCRIPTION

Set the username password for iSCSI CHAP authentication, inbound and outbound.

RETURN

Error code as enumerated by 'lsm_error_number'.
* LSM_ERR_OK
On success.
* LSM_ERR_INVALID_ARGUMENT
When not a valid lsm_connect pointer or invalid flags.
* LSM_ERR_NO_SUPPORT
Not supported.

lsm_iscsi_chap_auth January 2023